package com.siyu.prewarn.warnuser.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.siyu.prewarn.warnuser.mapper.WarnUserMapper;
import com.siyu.prewarn.warnuser.domain.WarnUser;
import com.siyu.prewarn.warnuser.service.IWarnUserService;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.siyu.prewarn.warnuser.mapper.WarnUserMapper;
import com.siyu.prewarn.warnuser.domain.WarnUser;
import com.siyu.prewarn.warnuser.service.IWarnUserService;

/**
 * 报警条件-用户中间Service业务层处理
 *
 * @author hrhy
 * @date 2024-06-15
 */
@Service
public class WarnUserServiceImpl extends ServiceImpl<WarnUserMapper, WarnUser> implements IWarnUserService
{
    @Autowired
    private WarnUserMapper warnUserMapper;

    /**
     * 查询报警条件-用户中间
     *
     * @param id 报警条件-用户中间主键
     * @return 报警条件-用户中间
     */
    @Override
    public WarnUser selectWarnUserById(String id)
    {
        return warnUserMapper.selectWarnUserById(id);
    }

    /**
     * 查询报警条件-用户中间列表
     *
     * @param warnUser 报警条件-用户中间
     * @return 报警条件-用户中间
     */
    @Override
    public List<WarnUser> selectWarnUserList(WarnUser warnUser)
    {
        return warnUserMapper.selectWarnUserList(warnUser);
    }

    /**
     * 新增报警条件-用户中间
     *
     * @param warnUser 报警条件-用户中间
     * @return 结果
     */
    @Override
    public int insertWarnUser(WarnUser warnUser)
    {
            return warnUserMapper.insertWarnUser(warnUser);
    }

    /**
     * 修改报警条件-用户中间
     *
     * @param warnUser 报警条件-用户中间
     * @return 结果
     */
    @Override
    public int updateWarnUser(WarnUser warnUser)
    {
        return warnUserMapper.updateWarnUser(warnUser);
    }

    /**
     * 批量删除报警条件-用户中间
     *
     * @param ids 需要删除的报警条件-用户中间主键
     * @return 结果
     */
    @Override
    public int deleteWarnUserByIds(String[] ids)
    {
        return warnUserMapper.deleteWarnUserByIds(ids);
    }

    /**
     * 删除报警条件-用户中间信息
     *
     * @param id 报警条件-用户中间主键
     * @return 结果
     */
    @Override
    public int deleteWarnUserById(String id)
    {
        return warnUserMapper.deleteWarnUserById(id);
    }
}


